package android.slc.module.component.image_loader;

import org.apache.commons.lang3.StringUtils;

public class ImageLoaderConfig {

    private static class Holder {
        private static final ImageLoaderConfig INSTANCE = new ImageLoaderConfig();
    }

    public static ImageLoaderConfig getInstance() {
        return Holder.INSTANCE;
    }

    private String savePath;

    public String getSavePath() {
        if(StringUtils.isEmpty(savePath)){
            throw new RuntimeException("没有配置savePath");
        }
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }
}
